// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-11-13 17:44:14
// 生成路径: internal/app/system/service/runners.go
// 生成人：gfast
// desc:跑手管理
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

type IRunners interface {
	List(ctx context.Context, req *model.RunnersSearchReq) (res *model.RunnersSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.RunnersInfoRes, err error)
	Add(ctx context.Context, req *model.RunnersAddReq) (err error)
	Edit(ctx context.Context, req *model.RunnersEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}

var localRunners IRunners

func Runners() IRunners {
	if localRunners == nil {
		panic("implement not found for interface IRunners, forgot register?")
	}
	return localRunners
}

func RegisterRunners(i IRunners) {
	localRunners = i
}
